package com.gec.dao.test;

import com.gec.dao.EmployeeDao;
import com.gec.dao.impl.EmployeeDaoImpl;
import com.gec.domain.Dept;
import com.gec.domain.Employee;
import com.gec.domain.Job;

import java.util.Date;

public class test {
  public static   EmployeeDao employeeDao=new EmployeeDaoImpl();
    public static void main(String[] args) {
        add();
    }

    private static void add() {
        Employee employee = new Employee();
        employee.setName("111");
        employee.setCARD_ID("111");
        employee.setAddress("4545");
        employee.setPhone("545");
        employee.setEmail("54545");
        employee.setSex(0);
        employee.setcreate_date(new Date());

        employee.setDept(new Dept());
        employee.setJob(new Job());

        employeeDao.addEmployee(employee);
    }

}
